﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using ClassLibrary.Data;

namespace ClassLibrary.DAO
{
    public class TblGroupDAO
    {
         private DBService _db = null;
          public TblGroupDAO(string ConnectionString)
         {
            _db = new DBService(ConnectionString);
         }

          public DataTable GetGroup()
          {
              try
              {

                  DataTable dt = null;
                  return dt = _db.ExeSP_DataTable("Select * from TblGroup", false, CommandType.Text);
              }

              catch (Exception ex)
              {
                  throw ex;
              }
          }
    }
}
